package cs7;

import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
public class Lean_Set {

	public static void main(String[] args) {
		Set <String> set=new HashSet<String>();
		set.add("Tom");
		set.add("Peter");
		set.add("Lily");
		set.add("Tom");
		
		Iterator<String> it = set.iterator();
		while(it.hasNext()){
			System.out.println(it.next());
		}
	}
}
